﻿
using System.Net;
using Microsoft.AspNetCore.Builder;
using Microsoft.AspNetCore.HttpOverrides;
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Logging;


// var builder = WebApplication.CreateBuilder(args).Inject();
// //builder.Services.AddControllers().AddInject();
// //builder.Services.AddRemoteRequest();
// //// Add services to the container.
//
// //var app = builder.Build();
//
// //// Configure the HTTP request pipeline.
// //app.UseInject();
// ////var summaries = new[]
// ////{
// ////    "Freezing", "Bracing", "Chilly", "Cool", "Mild", "Warm", "Balmy", "Hot", "Sweltering", "Scorching"
// ////};
//
// ////app.MapGet("/weatherforecast", () =>
// ////{
// ////    var forecast = Enumerable.Range(1, 5).Select(index =>
// ////        new WeatherForecast
// ////        (
// ////            DateTime.Now.AddDays(index),
// ////            Random.Shared.Next(-20, 55),
// ////            summaries[Random.Shared.Next(summaries.Length)]
// ////        ))
// ////        .ToArray();
// ////    return forecast;
// ////});
//
// ////app.Run();
// //builder.Services.Configure<IpRateLimitOptions>(builder.Configuration.GetSection("IpRateLimiting"));
//
//
// //internal record WeatherForecast(DateTime Date, int TemperatureC, string? Summary)
// //{
// //    public int TemperatureF => 32 + (int)(TemperatureC / 0.5556);
// //}





Serve.Run(RunOptions.Default);